package com.ruicar.afs.cloud.bizcommon.dto.rules.atom;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AfsRuleCopyDto {
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "源规则ID不能为空")
    private Long sourceId;
    /**
     * 规则编号
     */
    @NotBlank(message = "规则编号不能为空")
    @NotNull(message = "规则编号不能为空")
    private String toRuleNo;
    /**
     * 规则名称
     */
    @NotBlank(message = "规则名称不能为空")
    @NotNull(message = "规则名称不能为空")
    private String toRuleName;
    /**
     * 所属规则组
     */
    @NotBlank(message = "所属规则组不能为空")
    @NotNull(message = "所属规则组不能为空")
    private String toRuleGroup;
}
